package client;
import client.SaleComInfo_GUI;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.net.MalformedURLException;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.awt.Font;

public class SaleComWorker_3_GUI extends JDialog {

	private final JPanel contentPanel = new JPanel();

	/**
	 * Launch the application.
	 */
	/*public static void main(String[] args) {
		try {
			SaleComWorker_3_GUI dialog = new SaleComWorker_3_GUI();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public SaleComWorker_3_GUI() {
		setTitle("\u603B\u88C1");
		setModalityType(ModalityType.APPLICATION_MODAL);
		setBounds(100, 100, 450, 300);
		getContentPane().setLayout(new BorderLayout());
		contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
		getContentPane().add(contentPanel, BorderLayout.CENTER);
		contentPanel.setLayout(null);
		{
			JButton button = new JButton("\u51B3\u7B56\u5E02\u573A\u5BA3\u4F20\u7ECF\u8D39");
			button.setFont(new Font("宋体", Font.PLAIN, 15));
			button.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
						SaleRes_GUI dialog;
						dispose();
						dialog = new SaleRes_GUI();
						dialog.setLocationRelativeTo(null);
						dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
						dialog.setVisible(true);
					
				}
			});
			button.setBounds(132, 139, 170, 48);
			contentPanel.add(button);
		}
		{
			JButton button = new JButton("\u67E5\u770B\u516C\u53F8\u57FA\u672C\u4FE1\u606F");
			button.setFont(new Font("宋体", Font.PLAIN, 15));
			button.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
						SaleComInfo_GUI dialog;
						dispose();
						dialog = new SaleComInfo_GUI();
						dialog.setLocationRelativeTo(null);
						dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
						dialog.setVisible(true);
					
				}
			});
			button.setBounds(132, 77, 170, 52);
			contentPanel.add(button);
		}
		
		JButton button = new JButton("下班 ");
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				dispose();
			}
		});
		button.setBounds(301, 208, 84, 30);
		contentPanel.add(button);
		
	}
}
